/**
 *
 * @author TQNINH
 */

public class Doctor {
    String dCode;
    String dName;
    String dSpec;
    int dHour;
    
    public Doctor() {
        dCode = "";
        dName = "";
        dSpec = "";
        dHour = 0;
    }
    public Doctor(String c, String n, String s, int h) {
        this.dCode = c;
        this.dName = n;
        this.dSpec = s;
        this.dHour = h;
    }
    
    public void setCode(String c) {
        this.dCode = c;
    }
    public void setName(String n) {
        this.dName = n;
    }
    public void setSpec(String s) {
        this.dSpec = s;
    }
    public void setHour(int h) {
        this.dHour = h;
    }
    
    public String getCode() {
        return this.dCode;
    }
    public String getName() {
        return this.dName;
    }
    public String getSpec() {
       return this.dSpec;
    }
    public int getHour() {
        return this.dHour;
    }
    @Override
    public String toString() {
        return "Code: " + dCode
                +"\nName: " + dName
                +"\nSpecialization: " + dSpec
                +"\nHours: " + dHour;
    }
    
}
